package com.xqq.lottery;

import org.apache.commons.codec.digest.DigestUtils;

public class NativeProtocal {
	
	/**
	 * �Ӵ����̵���Կ(.so) JNI
	 */
	//public static final String AGENTER_PASSWORD = "9ab62a694d8bf6ced1fab6acd48d02f8";
	
	public static native String getAgenterPassword();
	
	/**
	 * ����compressDigest
	 * @param time
	 * @param body
	 * @return
	 */
	public static native String compressDigest(String time,String body);
	
	/**
	 * @param body
	 * @return
	 */
	public static native String compressBody(String body);
	
	public static native String DesEncode(String content);
	
	public static native String DesDecode(String content);
	
	public String md5Hex(String content){
		return DigestUtils.md5Hex(content);
	}
	
	
}
